<?php $appId = $this->fb_params['params']['appId'];?>
<?php $url = $this->baseUrl() .  '/default/index/postauthorize' ?>
<?php $next_url = $this->serverUrl($url); ?>
<div onclick="top.location.href='http://www.facebook.com/dialog/pagetab?app_id=<?php echo $appId ?>&next=<?php echo $next_url ?>'">
        Add Page Tab
</div>